package com.jht.btconnect.common;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;

import com.jht.btconnect.ui.BTDevicesActivity;
import com.jht.btconnect.ui.SplashActivity;

public class AppUtil {
    private static String TAG = "AppUtil";

    public static void launchBTDeviceUI(Context context){
        Intent intent = new Intent();
        Log.d(TAG, "launchBTDeviceUI: context ==> " + context );
        intent.setClass(context, BTDevicesActivity.class);
        context.startActivity(intent);
    }

    public static void launchSettingUI(Context context){
        Intent intent = new Intent();
        intent.setAction("android.settings.APPLICATION_DETAILS_SETTINGS");
        intent.setData(Uri.fromParts("package", context.getPackageName(), null));
        context.startActivity(intent);
    }

}
